namespace RequirementAndBug.DAL.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class initial : DbMigration
    {
        public override void Up()
        {
            DropForeignKey("dbo.REQRequireFeedbacks", "RequireID", "dbo.REQRequirements");
            DropIndex("dbo.REQRequireFeedbacks", new[] { "RequireID" });
            DropTable("dbo.REQRequireFeedbacks");
        }
        
        public override void Down()
        {
            CreateTable(
                "dbo.REQRequireFeedbacks",
                c => new
                    {
                        FeedbackID = c.Int(nullable: false, identity: true),
                        UserID = c.Int(nullable: false),
                        Status = c.Int(nullable: false),
                        CreateTime = c.DateTime(nullable: false),
                        RequireID = c.Int(nullable: false),
                    })
                .PrimaryKey(t => t.FeedbackID);
            
            CreateIndex("dbo.REQRequireFeedbacks", "RequireID");
            AddForeignKey("dbo.REQRequireFeedbacks", "RequireID", "dbo.REQRequirements", "RequireID", cascadeDelete: true);
        }
    }
}
